package com.woniuxy.afterloan.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.afterloan.entity.AfterLoans;
import com.woniuxy.afterloan.mapper.AfterLoanMapper;
import com.woniuxy.afterloan.service.AfterLoanService;
import com.woniuxy.commons.entity.AfterLoan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AfterLoanServiceImpl extends ServiceImpl<AfterLoanMapper, AfterLoans> implements AfterLoanService {

    @Autowired
    AfterLoanMapper afterLoanMapper;

    @Override
    public List<AfterLoan> getAll() {
        return afterLoanMapper.getAll();
    }

    @Override
    public List<AfterLoan> getByCondition(AfterLoan afterLoan) {
        return afterLoanMapper.getByCondition(afterLoan);
    }

    @Override
    public void update(AfterLoan afterLoan) {
        afterLoanMapper.update(afterLoan);
    }

    @Override
    public void delete(int id) {
        afterLoanMapper.delete(id);
    }

}
